import request from '@/utils/request'
// 获取维修报单信息
export function getRepair(data) {
  return request({
    url: '/repair/getPage',
    method: 'post',
    data: data
  })
}
// 维修上报

export function saveRepair(data) {
  return request({
    url: '/repair/save',
    method: 'post',
    data: data
  })
}
// 删除报单
export function deleteRepair(id) {
  return request({
    url: `/repair/delete/${id}`,
    method: 'get',
    headers: {
      'Content-Type':'application/x-www-form-urlencoded'
    }
  })
}

// 编辑报单
export function updateRepair(data) {
  return request({
    url: '/repair/update',
    method: 'post',
    data: data
  })
}
